package top.xiaoqy.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.xiaoqy.entity.Gpspoint;
import top.xiaoqy.entity.GpspointParam;
import top.xiaoqy.mapper.GpspointMapper;
import top.xiaoqy.service.IGpspointService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 小清远
 * @since 2023-12-28
 */
@Service
public class GpspointServiceImpl extends ServiceImpl<GpspointMapper, Gpspoint> implements IGpspointService {

    @Override

//    public IPage<Gpspoint> getList(IPage<Gpspoint> page, GpspointParam param);

    public IPage<Gpspoint> getList(GpspointParam param) {
        IPage<Gpspoint> page = new Page<>(param.getCurrentPage(),param.getPageSize());
        return this.baseMapper.getList(page,param);
    }
}
